package com.ruoyi.omp.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.omp.api.domain.AfElevator;
import com.ruoyi.omp.api.factory.RemoteInspectionFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author: cjie
 * @description: 抄表记录服务
 * @date: 2021/8/16
 */
@FeignClient(contextId = "remoteInspectionService", value = ServiceNameConstants.OMP_SECURITY_SERVICE, fallbackFactory =
        RemoteInspectionFactory.class)
public interface RemoteInspectionService {
    /**
     * 查询电梯列表
     * @param afElevator 电梯
     * @return
     */
    @PostMapping(value = "/afElevator/listAfE")
    R<List<AfElevator>> listAfE(@RequestBody AfElevator afElevator);

    //更新电梯列表
    @PostMapping(value = "/afElevator/update")
    public R updateAfElevator(@RequestBody AfElevator afElevator);

    //更新电梯列表
    @GetMapping(value = "/afElevatorHistory/syncInfo")
    public R syncInfo(@RequestParam("queryDate") String queryDate);
    
}
